package 创建者模式.工厂模式.p04_工厂方法模式;

/**
 * @Description TODO
 * @Author shallow
 * @Date 2023/3/3 12:44
 */

public class Client {
    public static void main(String[] args) {
        CoffeeStore coffeeStore = new CoffeeStore();
        coffeeStore.setCoffeeFactory(new LatteCoffeeFactory());
        Coffee coffee = coffeeStore.orderCoffee();
        System.out.println(coffee.getName());
    }
}
